<?php

namespace App\Models;

use App\Library\Models\Entity;

class UploadFileModel extends Entity
{
    protected $table = 'upload_file';
    
    protected $casts = ['oss_info' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'user_id',
        'file_name',
        'file_path',
        'original_name',
        'file_size',
        'img_width',
        'img_height',
        'file_ext',
        'encoding',
        'mime_type',
        'playtime_seconds',
        'bitrate',
        'playtime_string',
        'oss_info',
        'url',
        'created_at',
        'updated_at'
    ];
}
